import http from './http'
// https://api-hmugo-web.itheima.net/api/public/v1/home/swiperdata
export const swiperdataApi = () => {
    return http({
        method: 'get',
        url: 'https://api-hmugo-web.itheima.net/api/public/v1/home/swiperdata',
    })
}
// https://api-hmugo-web.itheima.net/api/public/v1/home/catitems
export const catitemsApi = () => {
    return http({
        method: 'get',
        url: 'https://api-hmugo-web.itheima.net/api/public/v1/home/catitems',
    })
}
// https://api-hmugo-web.itheima.net/api/public/v1/home/floordata
export const floordataApi = () => {
    return http({
        method: 'get',
        url: 'https://api-hmugo-web.itheima.net/api/public/v1/home/floordata',
    })
}
// https://api-hmugo-web.itheima.net/api/public/v1/goods/qsearch
export const qsearchApi = (query) => {
    return http({
        method: 'get',
        url: 'https://api-hmugo-web.itheima.net/api/public/v1/goods/qsearch',
        params:{
            query
        }
    })
}
// https://api-hmugo-web.itheima.net/api/public/v1/goods/detail
export const detailApi = (goods_id) => {
    return http({
        method: 'get',
        url: 'https://api-hmugo-web.itheima.net/api/public/v1/goods/detail',
        params:{
            goods_id
        }
    })
}